package cn.qg.common;

/**
 * 系统错误编码，根据业务定义如下
 * <br/>
 * 酒店主业务biz：1开头（10000）<br/>
 *              评论：10001 ——10100<br/>
 *              酒店详情：10101 ——10200<br/>
 *              订单：10201 ——10400<br/>
 * 搜索search：2开头（20000）<br/>
 * 认证auth：3开头（30000）<br/>
 * 支付trade：4开头（40000）<br/>
 *
 */
public class ErrorCode {

    /*认证模块错误码-start*/
    public final static String AUTH_UNKNOWN = "30000";
    public final static String AUTH_USER_ALREADY_EXISTS = "30001";//用户已存在
    public final static String AUTH_AUTHENTICATION_FAILED = "30002";//认证失败
    public final static String AUTH_PARAMETER_ERROR = "30003";//用户名密码参数错误，为空
    public final static String AUTH_ACTIVATE_FAILED = "30004";//邮件注册，激活失败
    public final static String AUTH_REPLACEMENT_FAILED = "30005";//置换token失败
    public final static String AUTH_TOKEN_INVALID = "30006";//token无效
    public static final String AUTH_ILLEGAL_USERCODE = "30007";//非法的用户名
    public static final String AUTH_USER_NEED_ACTIVATE = "30008";// 用户未激活
    /*认证模块错误码-end*/

    /*主业务模块错误码-start*/
    public final static String BIZ_UNKNOWN = "10000";
    public final static String BIZ_PARAMETER_ERROR = "10001";// 参数错误
    public final static String BIZ_RESULT_ERROR = "10002";// 结果错误
    public final static String STORE_NOT_ENOUGH = "10003";// 库存不充足
    /*主业务模块错误码-end*/

    /*搜索模块错误码-start*/
    public final static String SEARCH_UNKNOWN = "20000";
    public final static String SEARCH_PARAMETER_ERROR = "20001";// 参数错误
    public final static String SEARCH_RESULT_ERROR = "20002";// 结果错误
    /*搜索模块错误码-end*/

    /*支付模块错误码-start*/
    public final static String TRADE_UNKNOWN = "40000";
    public final static String TRADE_PARAMETER_ERROR = "40001";// 参数错误
    public final static String TRADE_RESULT_ERROR = "40002";// 结果错误
    public final static String TRADE_ORDER_ALREADY_OVER = "40003";// 结果错误
    /*支付模块错误码-end*/
}
